package com.example.demo.entity;

import lombok.Data;

@Data
public class Course {
    int CNo;
    String CName;
    String CCredits;
    String CTno;


    public Course(int Cno, String cname, String ccredits, String CTno) {
        CNo=Cno;
        CName = cname;
        CCredits = ccredits;
        this.CTno = CTno;
    }

    public void show(){
        System.out.print("Cno: " + CNo);
        System.out.print("  Cname: " + CName);
        System.out.print("  Ccredits: " + CCredits);
        System.out.println("  CTno: " + CTno);
    }

}
